home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 2: CDPD 1
/
Almathera Ten on Ten - Disc 2: CDPD 1.iso
/
pd
/
176-200
/
190
/
ilbm2image
/
ilbm2image.doc
< prev
next >
Wrap
Text File
|
1995-03-13
|
2KB
|
45 lines
ILBM2image
I have included three programs here that I hope you find useful.
They are tools that I developed for a rainforest bird identification key
program that is used in the Information Centre at Binna Burra in Lamington
National Park.
I was faced with converting sixty IFF pictures to C source code
modules to be called when the user had identified the appropriate
bird. The pictures also needed to be updated when needed. I
therefore developed ILBM2image and ILBM2func that would produce a
module that could be compiled as a separate module to be linked
with the main program.
You supply the name of an IFF image that is in the same directory
(picture or brush ) and the programs will produce a text file
with ".c" appended to the original name. This text file is ready to
compile.
ILBM2func assumes that you have a window called Window and uses the
Intuition function DrawImage() to draw it. All you have to do is call
parrotsimagefunc();
I have include a program I wrote called GetCMap also which makes a text
file of the colour map of an IFF picture file.
The programs will also work for HAM pictures and rectangular
brushes.
ILBM2func and ILBM2image can be used in batch files if a large
number of similar files need to be made and compiled at the same time.
eg.
ilbm2func parrots
lc parrots
delete parrots.c
ilbm2func ....
....etc.
Ronda Green did the icons(example and programs) and bird pictures.
I am putting these programs into the public domain.
Denis S. Green
Greensoft
Running Creek Road
via RathDowney
Queensland
Australia 4287
ph. (075) 441283